home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / autosa1a / autosack.frm next >
Text File  |  1999-10-18  |  19KB  |  547 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "AUTO SACKER"
  5.    ClientHeight    =   4380
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   8730
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   4380
  13.    ScaleWidth      =   8730
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.TextBox box 
  17.       Height          =   4095
  18.       Left            =   3360
  19.       MultiLine       =   -1  'True
  20.       TabIndex        =   26
  21.       Top             =   120
  22.       Width           =   5055
  23.    End
  24.    Begin VB.CommandButton Command1 
  25.       Caption         =   "Compile Letter"
  26.       Height          =   495
  27.       Left            =   360
  28.       TabIndex        =   25
  29.       Top             =   3720
  30.       Width           =   2655
  31.    End
  32.    Begin VB.CommandButton R_L 
  33.       Caption         =   ">"
  34.       Height          =   255
  35.       Left            =   2160
  36.       TabIndex        =   22
  37.       Top             =   1440
  38.       Width           =   255
  39.    End
  40.    Begin VB.CommandButton L_L 
  41.       Caption         =   "<"
  42.       Height          =   255
  43.       Left            =   840
  44.       TabIndex        =   21
  45.       Top             =   1440
  46.       Width           =   255
  47.    End
  48.    Begin VB.CommandButton R_Rude 
  49.       Caption         =   ">"
  50.       Height          =   255
  51.       Left            =   1560
  52.       TabIndex        =   19
  53.       Top             =   3240
  54.       Width           =   255
  55.    End
  56.    Begin VB.CommandButton L_Rude 
  57.       Caption         =   "<"
  58.       Height          =   255
  59.       Left            =   360
  60.       TabIndex        =   18
  61.       Top             =   3240
  62.       Width           =   255
  63.    End
  64.    Begin VB.CommandButton R_Nasty 
  65.       Caption         =   ">"
  66.       Height          =   255
  67.       Left            =   1560
  68.       TabIndex        =   16
  69.       Top             =   2880
  70.       Width           =   255
  71.    End
  72.    Begin VB.CommandButton L_Nasty 
  73.       Caption         =   "<"
  74.       Height          =   255
  75.       Left            =   360
  76.       TabIndex        =   15
  77.       Top             =   2880
  78.       Width           =   255
  79.    End
  80.    Begin VB.CommandButton R_Stupid 
  81.       Caption         =   ">"
  82.       Height          =   255
  83.       Left            =   1560
  84.       TabIndex        =   13
  85.       Top             =   2520
  86.       Width           =   255
  87.    End
  88.    Begin VB.CommandButton L_Stupid 
  89.       Caption         =   "<"
  90.       Height          =   255
  91.       Left            =   360
  92.       TabIndex        =   12
  93.       Top             =   2520
  94.       Width           =   255
  95.    End
  96.    Begin VB.CommandButton R_Lazy 
  97.       Caption         =   ">"
  98.       Height          =   255
  99.       Left            =   1560
  100.       TabIndex        =   10
  101.       Top             =   2160
  102.       Width           =   255
  103.    End
  104.    Begin VB.CommandButton L_Lazy 
  105.       Caption         =   "<"
  106.       Height          =   255
  107.       Left            =   360
  108.       TabIndex        =   9
  109.       Top             =   2160
  110.       Width           =   255
  111.    End
  112.    Begin VB.CheckBox Check4 
  113.       Caption         =   "Rude"
  114.       Height          =   255
  115.       Left            =   2280
  116.       TabIndex        =   5
  117.       Top             =   3240
  118.       Width           =   2175
  119.    End
  120.    Begin VB.CheckBox Check3 
  121.       Caption         =   "Nasty"
  122.       Height          =   255
  123.       Left            =   2280
  124.       TabIndex        =   4
  125.       Top             =   2880
  126.       Width           =   2415
  127.    End
  128.    Begin VB.CheckBox Check2 
  129.       Caption         =   "Stupid"
  130.       Height          =   255
  131.       Left            =   2280
  132.       TabIndex        =   3
  133.       Top             =   2520
  134.       Width           =   2295
  135.    End
  136.    Begin VB.CheckBox Check1 
  137.       Caption         =   "Lazy"
  138.       Height          =   255
  139.       Left            =   2280
  140.       TabIndex        =   2
  141.       Top             =   2160
  142.       Width           =   2295
  143.    End
  144.    Begin VB.TextBox From 
  145.       Height          =   285
  146.       Left            =   840
  147.       TabIndex        =   1
  148.       Text            =   "Name"
  149.       Top             =   1080
  150.       Width           =   2175
  151.    End
  152.    Begin VB.TextBox To 
  153.       Height          =   285
  154.       Left            =   840
  155.       TabIndex        =   0
  156.       Text            =   "Name"
  157.       Top             =   720
  158.       Width           =   2175
  159.    End
  160.    Begin VB.Label Label6 
  161.       Caption         =   "By Richard Nicol"
  162.       ForeColor       =   &H00000080&
  163.       Height          =   255
  164.       Left            =   1680
  165.       TabIndex        =   28
  166.       Top             =   120
  167.       Width           =   1215
  168.    End
  169.    Begin VB.Label Label4 
  170.       Caption         =   "AUTO SACKER"
  171.       ForeColor       =   &H000000FF&
  172.       Height          =   255
  173.       Left            =   360
  174.       TabIndex        =   27
  175.       Top             =   120
  176.       Width           =   1935
  177.    End
  178.    Begin VB.Label L_T 
  179.       Alignment       =   2  'Center
  180.       Caption         =   "Polite"
  181.       Height          =   255
  182.       Left            =   840
  183.       TabIndex        =   23
  184.       Top             =   1440
  185.       Width           =   1575
  186.    End
  187.    Begin VB.Label Rude 
  188.       Alignment       =   2  'Center
  189.       Caption         =   "Slightly"
  190.       Height          =   255
  191.       Left            =   600
  192.       TabIndex        =   20
  193.       Top             =   3240
  194.       Width           =   975
  195.    End
  196.    Begin VB.Label Nasty 
  197.       Alignment       =   2  'Center
  198.       Caption         =   "Slightly"
  199.       Height          =   255
  200.       Left            =   600
  201.       TabIndex        =   17
  202.       Top             =   2880
  203.       Width           =   975
  204.    End
  205.    Begin VB.Label Stupid 
  206.       Alignment       =   2  'Center
  207.       Caption         =   "Slightly"
  208.       Height          =   255
  209.       Left            =   600
  210.       TabIndex        =   14
  211.       Top             =   2520
  212.       Width           =   975
  213.    End
  214.    Begin VB.Label Lazy 
  215.       Alignment       =   2  'Center
  216.       Caption         =   "Slightly"
  217.       Height          =   255
  218.       Left            =   600
  219.       TabIndex        =   11
  220.       Top             =   2160
  221.       Width           =   975
  222.    End
  223.    Begin VB.Label Label3 
  224.       Caption         =   "Employee is:"
  225.       Height          =   255
  226.       Left            =   360
  227.       TabIndex        =   8
  228.       Top             =   1800
  229.       Width           =   1815
  230.    End
  231.    Begin VB.Label Label2 
  232.       Caption         =   "From:"
  233.       Height          =   255
  234.       Left            =   360
  235.       TabIndex        =   7
  236.       Top             =   1080
  237.       Width           =   855
  238.    End
  239.    Begin VB.Label Label1 
  240.       Caption         =   "To:"
  241.       Height          =   255
  242.       Left            =   360
  243.       TabIndex        =   6
  244.       Top             =   720
  245.       Width           =   855
  246.    End
  247.    Begin VB.Label Label5 
  248.       Caption         =   "Letter:"
  249.       Height          =   255
  250.       Left            =   360
  251.       TabIndex        =   24
  252.       Top             =   1440
  253.       Width           =   1095
  254.    End
  255. End
  256. Attribute VB_Name = "Form1"
  257. Attribute VB_GlobalNameSpace = False
  258. Attribute VB_Creatable = False
  259. Attribute VB_PredeclaredId = True
  260. Attribute VB_Exposed = False
  261. 'rnicol@khi-ro.co.uk
  262.  
  263. '(not responsible for any fights you get into)
  264.  
  265. ':-)
  266.  
  267. Dim l1
  268. Dim l2
  269. Dim l3
  270. Dim a1
  271. Dim a2
  272. Dim a3
  273. Dim L_1_P, ST_1_P, N_1_P, R_1_P
  274. Dim L_2_P, ST_2_P, N_2_P, R_2_P
  275. Dim L_3_P, ST_3_P, N_3_P, R_3_P
  276. Dim L_1_F, ST_1_F, N_1_F, R_1_F
  277. Dim L_2_F, ST_2_F, N_2_F, R_2_F
  278. Dim L_3_F, ST_3_F, N_3_F, R_3_F
  279. Dim L_1_U, ST_1_U, N_1_U, R_1_U
  280. Dim L_2_U, ST_2_U, N_2_U, R_2_U
  281. Dim L_3_U, ST_3_U, N_3_U, R_3_U
  282.  
  283.  
  284. Private Sub Command1_Click()
  285. Dim letter
  286. Dim Welcome
  287. Dim x
  288. Dim last
  289. x = Form1.To.Text
  290. If L_T = l1 Then Welcome = "Dear " & x & ","
  291. If L_T = l2 Then Welcome = "Dear " & x & ","
  292. If L_T = l3 Then Welcome = x & ","
  293. If L_T